<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html"%>


<bean:message key="formulario.producao.descricao"/>
<logic:present role="producao">
<table class="tbForm">
	<logic:empty name="producoes">
	<tr>
		<td align="left">
			<bean:message key="mensagem.producao.agendamento.vazio"/>
		</td>
	</tr>
	</logic:empty>
	<logic:notEmpty name="producoes">
	<br>
	<br>
	
	<tr>
		<th colspan="4" align="center"><bean:message key="mensagem.producao.agendamento"/></th>
	</tr>
	<tr>
		<th width="40%" align="center"><bean:message key="formulario.producao.produto"/></th>
		<th width="10%" align="center"><bean:message key="formulario.producao.quantidade"/></th>		
		<th width="10%" align="center"><bean:message key="formulario.producao.data"/></th>				
		<th width="40%" align="center">&nbsp;</th>
	</tr>
	<logic:iterate id="producao" name="producoes">
	<tr>
		<td align="left">
			<html:img pageKey="sistema.ico.marcador" align="absmiddle"/>
			<bean:write name="producao" property="produto.nome"/>
		</td>
		<td align="left">
			<bean:write name="producao" property="quantidadeDesejada"/>
		</td>		
		<td align="left">
		 <bean:write name="producao" property="dataProducao" formatKey="sistema.padrao.data" />
		</td>			
		<td align="left" valign="middle">
			<html:link action="/sistema/producao/formVisualizar" paramId="producaoId" paramName="producao" paramProperty="producaoId">
				<html:img pageKey="sistema.ico.visualizar" altKey="menu.producoes.visualizar" align="absmiddle"/>
				<bean:message key="menu.producoes.visualizar"/>
			</html:link>
			<br>
			<html:link action="/sistema/producao/formModificar" paramId="producaoId" paramName="producao" paramProperty="producaoId">
				<html:img pageKey="sistema.ico.modificar" altKey="sistema.alt.editar" align="absmiddle"/>
				<bean:message key="menu.producao.editar"/>
			</html:link>
			<br>
			<html:link action="/sistema/producao/formApagar" paramId="producaoId" paramName="producao" paramProperty="producaoId">
				<html:img action="" pageKey="sistema.ico.apagar" altKey="sistema.alt.apagar" align="absmiddle"/>
				<bean:message key="menu.sistema.apagar"/>
			</html:link>
		</td>
	</tr>
	</logic:iterate>
	</logic:notEmpty>
</table>
</logic:present>